<template>
  <div>
    <div>第一个页面</div>
    <span>{{count}}</span>
    <button @click="change">修改</button>
  </div>

</template>

<script>
  export default {
    name: 'ChildOne',
    data(){
      return{
        count:1,
      }
    },
    activated () {
      console.log("activated")
    },
    deactivated () {
      console.log("deactivated")
    },
    methods:{
      change(){
        this.count+=1;
      }
    }
  }
</script>

<style scoped>

</style>
